package com.shadt.pay.wechat.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.shadt.pay.wechat.dao.WeChatAppDao;
import com.shadt.pay.wechat.entity.Pay_WeChat_App;
import com.shadt.pay.wechat.service.WeChatAppService;

/**
 * 微信app业务逻辑层实现类
 * @author SongR
 *
 */
@Service
public class WeChatAppServiceImpl implements WeChatAppService{

	@Autowired
	WeChatAppDao weChatAppDao;
	/**
	 * 实现添加记录
	 */
	public void save(Pay_WeChat_App wechatApp) throws Exception {
		weChatAppDao.saveOrUpdate(wechatApp);
	}
	/**
	 * 实现验证记录是否存在
	 */
	public boolean check(Pay_WeChat_App wc) throws Exception {
		
		return false;
	}
	/**
	 * 实现获取记录数
	 */
	public Long count(Pay_WeChat_App wc) throws Exception {
		return weChatAppDao.count("select count(*) from Pay_WeChat_App");
	}

}
